home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mmdf / mmdf-IIb.43 / lib / table / tb_struct.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-05-21  |  1.6 KB  |  56 lines

  1. #include "util.h"
  2. #include "mmdf.h"
  3. #include "ch.h"
  4. /*
  5.  *     MULTI-CHANNEL MEMO DISTRIBUTION FACILITY  (MMDF)
  6.  *     
  7.  *
  8.  *     Copyright (C) 1979,1980,1981  University of Delaware
  9.  *     
  10.  *     Department of Electrical Engineering
  11.  *     University of Delaware
  12.  *     Newark, Delaware  19711
  13.  *
  14.  *     Phone:  (302) 738-1163
  15.  *     
  16.  *     
  17.  *     This program module was developed as part of the University
  18.  *     of Delaware's Multi-Channel Memo Distribution Facility (MMDF).
  19.  *     
  20.  *     Acquisition, use, and distribution of this module and its listings
  21.  *     are subject restricted to the terms of a license agreement.
  22.  *     Documents describing systems using this module must cite its source.
  23.  *
  24.  *     The above statements must be retained with all copies of this
  25.  *     program and may not be removed without the consent of the
  26.  *     University of Delaware.
  27.  *     
  28.  *
  29.  *     version  -1    David H. Crocker    March   1979
  30.  *     version   0    David H. Crocker    April   1980
  31.  *     version  v7    David H. Crocker    May     1981
  32.  *     version   1    David H. Crocker    October 1981
  33.  *
  34.  */
  35.  
  36. extern Table **tb_list;
  37. #ifdef DEBUG
  38. extern LLog *logptr;
  39. #endif
  40.  
  41. Table  *tb_nm2struct (name)       /* give pointer to structure for chan  */
  42. register char  *name;          /* string name of chan                */
  43. {
  44.     register Table **tableptr;
  45.  
  46. #ifdef DEBUG
  47.     ll_log(logptr, LLOGBTR, "tb_nm2struct(%s)",name);
  48. #endif
  49.  
  50.     for (tableptr = tb_list; *tableptr != (Table *) 0; tableptr++)
  51.     if (lexequ (name, (*tableptr) -> tb_name))
  52.         return (*tableptr);    /* return addr of chan struct entry   */
  53.  
  54.     return ((Table *) NOTOK);
  55. }
  56.